﻿using System;
using SharpSqlAnalyzer.nodes;

namespace SharpSqlAnalyzer.stmt.redshift
{
	// Token: 0x02000107 RID: 263
	public class TRedshiftClose : TCustomSqlStatement
	{
		// Token: 0x17000181 RID: 385
		// (get) Token: 0x060008A2 RID: 2210 RVA: 0x0030247A File Offset: 0x0030067A
		// (set) Token: 0x060008A3 RID: 2211 RVA: 0x00302482 File Offset: 0x00300682
		public virtual TObjectName CursorName
		{
			get
			{
				return this.cursorName;
			}
			set
			{
				this.cursorName = value;
			}
		}

		// Token: 0x060008A4 RID: 2212 RVA: 0x0030248B File Offset: 0x0030068B
		public TRedshiftClose(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstredshiftClose;
		}

		// Token: 0x060008A5 RID: 2213 RVA: 0x003024A0 File Offset: 0x003006A0
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			base.doParseStatement(psql);
			TDummy tdummy = (TDummy)this.rootNode;
			this.cursorName = (TObjectName)tdummy.node1;
			return 0;
		}

		// Token: 0x060008A6 RID: 2214 RVA: 0x003024DD File Offset: 0x003006DD
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x060008A7 RID: 2215 RVA: 0x003024ED File Offset: 0x003006ED
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x04001221 RID: 4641
		private TObjectName cursorName;
	}
}
